import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '手机号',
    align: "center",
    dataIndex: 'phone'
  },
  {
    title: '昵称',
    align: "center",
    dataIndex: 'nickname'
  },
  {
    title: '邀请码',
    align: "center",
    dataIndex: 'invitationCode'
  },
  {
    title: '头像',
    align: "center",
    dataIndex: 'avatar',
    customRender: render.renderImage,
  },
  {
    title: '微信OpenId',
    align: "center",
    dataIndex: 'openId'
  },
];

// 高级查询数据
export const superQuerySchema = {
  phone: {title: '手机号',order: 0,view: 'text', type: 'string',},
  nickname: {title: '昵称',order: 1,view: 'text', type: 'string',},
  invitationCode: {title: '邀请码',order: 2,view: 'text', type: 'string',},
  avatar: {title: '头像',order: 3,view: 'image', type: 'string',},
  openId: {title: '微信OpenId',order: 4,view: 'text', type: 'string',},
};
